import { get, post, post_json } from '@/http/axios'
export default {
  namespaced: true,
  state: {
      orderDetail:[]
  },
  mutations: {
    SET_ORDERDETAIL(state,payload){
        state.orderDetail = payload;
    }
  },
  actions: {
    //获取全部栏目的数据
    async getOrderDetail({commit},payload){
        let res = await get('/order/findById',payload)
        commit('SET_ORDERDETAIL',res.data.data)
    }
  }
}